package com.easyjob.mappers;

import org.apache.ibatis.annotations.Param;

/**
 * @author Const
 * @version 1.0
 * @email 1357042069@qq.com
 * @date 2023/12/14
 */
public interface QuestionBankMapper<T, P> extends BaseMapper<T, P> {
    /**
     * 根据CategoryId更新
     */
    Integer updateByBankId(@Param("bean") T t, @Param("bankId") Integer categoryId);


    /**
     * 根据CategoryId删除
     */
    Integer deleteByBankId(@Param("bankId") Integer bankId);


    /**
     * 根据CategoryId获取对象
     */
    T selectByBankId(@Param("bankId") Integer bankId);


    void updateBankName(@Param("bankName") String bankName, @Param("bankId") Integer bankId);
}
